<include file="public@head" />
</head>

<body>
    <div class="layui-fluid wrap js-check-wrap" id="component-tabs">
        <div class="layui-row">
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-header">文章标签</div>
                    <div class="layui-card-body">
                        <div class="layui-tab">
                            <ul class="layui-tab-title">
                                <li class="layui-this"><a href="{:url('AdminTag/index')}">标签列表</a></li>
                                <li><a href="{:url('AdminTag/add')}">添加标签</a></li>
                            </ul>
                            <div class="layui-tab-content">
                                <div class="layui-tab-item layui-show">
                                    <form method="post" class="js-ajax-form layui-form" action="{:url('AdminTag/listOrder')}">
                                        <table class="layui-table" id="menus-table">
                                            <thead>
                                                <tr>
                                                    <th width="16">
                                                        <input lay-skin="primary" type="checkbox" lay-filter="js-check-all" class="js-check-all" data-direction="x" data-checklist="js-check-x">
                                                    </th>
                                                    <th width="50">ID</th>
                                                    <th>标签名称</th>
                                                    <th>状态</th>
                                                    <th width="160">操作</th>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                <foreach name="tags" item="vo">
                                                    <tr>
                                                        <td><input lay-skin="primary" type="checkbox" lay-filter="js-check" class="js-check" data-yid="js-check-y" data-xid="js-check-x"></td>
                                                        <td>{$vo.id}</td>
                                                        <td>{$vo.name}</td>
                                                        <td><span class="layui-btn layui-btn-xs layui-btn-warm">{$arrStatus[$vo['status']]}</span></td>
                                                        <td>
                                                            <span class="layui-btn-group">
                                                                <if condition="$vo['status'] eq 1">
                                                                    <a class="js-ajax-dialog-btn layui-btn layui-btn-xs layui-btn-normal" href="{:url('AdminTag/upStatus',['id'=>$vo['id'],'status'=>0])}">禁用</a>
                                                                    <else />
                                                                    <a class="js-ajax-dialog-btn layui-btn  layui-btn-xs layui-btn-normal" href="{:url('AdminTag/upStatus',['id'=>$vo['id'] ,'status'=>1])}">启用</a>
                                                                </if>
                                                                <a class="js-ajax-delete layui-btn layui-btn-xs layui-btn-danger" href="{:url('AdminTag/delete',['id'=>$vo['id']])}">删除</a>
                                                            </span>
                                                        </td>
                                                    </tr>
                                                </foreach>
                                            </tbody>
                                            <thead>
                                                <tr>
                                                    <th width="16">
                                                        <input lay-skin="primary" type="checkbox" lay-filter="js-check-all" class="js-check-all" data-direction="x" data-checklist="js-check-x">
                                                    </th>
                                                    <th width="50">ID</th>
                                                    <th>标签名称</th>
                                                    <th>状态</th>
                                                    <th width="160">操作</th>
                                                </tr>
                                            </thead>
                                        </table>
                                    </form>
                                    <ul class="layui-laypage">{$page|default=''}</ul>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <include file="public@footer" />
</body>

</html>